{if $cat_photo}
<div class="photolist">
  {section name=i loop=$cat_photo}
    <div class="photocat">
      <div class="catimg">{$cat_photo[i].linkg}      <div class="photoinfo">
      <div class="cattext">{$cat_photo[i].linkt}</div>
      </div></div>

    </div>
  {/section}
  </div>
  <div class="clr"></div>
    
{/if}